
mqtt_client : mqtt_main.o subcribe.o publish.o subcribe.o connect.o config.o
	gcc -o $@ $^ -lpthread

#socket_client.o : socket_client.c config.h
#	gcc -c socket_client.c

#subcribe.o : subcribe.c
#	gcc -c subcribe.c

*.o : *.c
	gcc -c $^

clean:
	rm *.o
	rm mqtt_client